package co.th.bjc.md.business.impl;

import co.th.bjc.md.business.TestBusiness;
import co.th.bjc.md.dao.LoginDao;
import co.th.bjc.md.dao.ProductDao;
import co.th.bjc.md.model.Product;

public class TestBusinessImpl implements TestBusiness {

	private ProductDao productDao;
	private LoginDao loginDao;

	public void setLoginDao(LoginDao loginDao) {
		this.loginDao = loginDao;
	}

	public void setProductDao(ProductDao productDao) {
		this.productDao = productDao;
	}

	@Override
	public Product testFindProduct(Product product) throws Exception {
		product = productDao.findByID(product.getProductCode());
		return product;
	}
}
